package com.ebocy.hammer.game.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SItemChange extends AbstractC2SMessage {
	private long gamePlayerItemId;
	private short key;

	public long getGamePlayerItemId() {
		return gamePlayerItemId;
	}

	public short getKey() {
		return key;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.GAME_ITEM_CHANGE;
	}

	@Override
	public void readMessage() {
		gamePlayerItemId = Long.parseLong(readString());
		key = readShort();
	}

}
